<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>用户列表</h1>

<table>
    <tr th:each="user:${pages.content}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.cnname}"></td>
        <td th:text="${user.enabled}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.roleNames}"></td>
    </tr>
</table>
<div th:text="${'共' + pages.totalElements + '条，共' + pages.totalPages + '页'}"></div>
<div>
    <a th:each="i:${#numbers.sequence(1,pages.totalPages)}" th:href="${'list?page='+(i-1)}"><span th:text="${i}"></span> </a>
</div>
<a href="add">添加用户</a>
</body>
</html>